package com.ruoyi.bookstore.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 借书记录对象 borrow_books
 * 
 * @author ruoyi
 * @date 2022-07-20
 */
public class BorrowBooks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 借阅证编号 */
    @Excel(name = "借阅证编号")
    private Long cardId;

    /** 书籍编号 */
    @Excel(name = "书籍编号")
    private Long bookId;

    /** 借书日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借书日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowDate;

    /** 限制日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "限制日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDate;

    /** 违规描述 */
    @Excel(name = "违规描述")
    private String illegal;

    /** 处理人编号 */
    @Excel(name = "处理人编号")
    private String managerId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCardId(Long cardId) 
    {
        this.cardId = cardId;
    }

    public Long getCardId() 
    {
        return cardId;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setBorrowDate(Date borrowDate) 
    {
        this.borrowDate = borrowDate;
    }

    public Date getBorrowDate() 
    {
        return borrowDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setReturnDate(Date returnDate) 
    {
        this.returnDate = returnDate;
    }

    public Date getReturnDate() 
    {
        return returnDate;
    }
    public void setIllegal(String illegal) 
    {
        this.illegal = illegal;
    }

    public String getIllegal() 
    {
        return illegal;
    }
    public void setManagerId(String managerId) 
    {
        this.managerId = managerId;
    }

    public String getManagerId() 
    {
        return managerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardId", getCardId())
            .append("bookId", getBookId())
            .append("borrowDate", getBorrowDate())
            .append("endDate", getEndDate())
            .append("returnDate", getReturnDate())
            .append("illegal", getIllegal())
            .append("managerId", getManagerId())
            .toString();
    }
}
